import { createRouter, createWebHashHistory, } from 'vue-router'
export const routes = [
    {
        name: 'home',
        path: '/',
        component: () => import('../pages/home/index.vue')
    },
    {
        name: 'flow',
        path: '/flow',
        component: () => import('../pages/flow/index.vue')
    }

]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})
router.beforeEach((to, from, next) => {
    console.log(to,from)
    next()
})
export default router